import request from '@/utils/request'
import linq from 'linq'
export async function get教师其他情况A(XXID,CJPC){
    //
    
    let res =  await request({
        url: `/JsqtqkA?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and (是否删除 eq 0 or 是否删除 eq null)`,
        method: 'get',
      })
    return res.data.value;
    //
    
}
export async function bulkAddJsqtqkA(data){
  //
  
  let res =  await request({
      url: '/JsqtqkA/BulkAddJsqtqkA',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况A(model){
    let res =  await request({
        url: `/JsqtqkA(${model.ID})`,
        method: 'put',
        data: model
      })
      return res.data.value;
}
export async function delete教师其他情况A(model){
    let res = await  request({
        url: `/JsqtqkA/${model.ID}`,
        method: 'delete',
      })
      return res.data;
}
export async function add教师其他情况A(model){
   
    let res =  await request({
      url: '/JsqtqkA',
      method: 'post',
      data: model,
    })
    return res.data;
}

export async function get教师其他情况B(XXID,CJPC){
  //
  
  let res =  await request({
      url: `/JsqtqkB?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and (是否删除 eq 0 or 是否删除 eq null)`,
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function bulkAddJsqtqkB(data){
  //
  
  let res =  await request({
      url: '/JsqtqkB/BulkAddJsqtqkB',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况B(model){
  let res =  await request({
      url: `/JsqtqkB(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data;
}
export async function delete教师其他情况B(model){
  let res = await  request({
      url: `/JsqtqkB/${model.ID}`,
      method: 'delete',
    })
    return res.data;
}
export async function add教师其他情况B(model){
 
  let res =  await request({
    url: '/JsqtqkB',
    method: 'post',
    data: model,
  })
  return res.data;
}
export async function get教师其他情况C(XXID,CJPC){
  //

  let res =  await request({
    url: `/JsqtqkC?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and (是否删除 eq 0 or 是否删除 eq null)`,
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function bulkAddJsqtqkC(data){
  //
  
  let res =  await request({
      url: '/JsqtqkC/BulkAddJsqtqkC',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况C(model){
  let res =  await request({
      url: `/JsqtqkC(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data;
}
export async function delete教师其他情况C(model){
  let res = await  request({
      url: `/JsqtqkC/${model.ID}`,
      method: 'delete',
    })
    return res.data;
}
export async function add教师其他情况C(model){
 
  let res =  await request({
    url: '/JsqtqkC',
    method: 'post',
    data: model,
  })
  return res.data;
}
export async function get教师其他情况D(XXID,CJPC){
  //
  
  let res =  await request({
      url: `/JsqtqkD?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and (是否删除 eq 0 or 是否删除 eq null)`,
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function bulkAddJsqtqkD(data){
  //
  
  let res =  await request({
      url: '/JsqtqkD/BulkAddJsqtqkD',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况D(model){
  let res =  await request({
      url: `/JsqtqkD(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data;
}
export async function delete教师其他情况D(model){
  let res = await  request({
      url: `/JsqtqkD/${model.ID}`,
      method: 'delete',
    })
    return res.data;
}
export async function add教师其他情况D(model){
 
  let res =  await request({
    url: '/JsqtqkD',
    method: 'post',
    data: model,
  })
  return res.data;
}
export async function get教师其他情况E(XXID,CJPC){
  //
  
  let res =  await request({
      url: `/JsqtqkE?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and (是否删除 eq 0 or 是否删除 eq null)`,
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function bulkAddJsqtqkE(data){
  //
  
  let res =  await request({
      url: '/JsqtqkE/BulkAddJsqtqkE',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况E(model){
  let res =  await request({
      url: `/JsqtqkE(${model.ID})`,
      method: 'put',
      data: model
    })
    var data = JSON.stringify(res.data)
    console.log(JSON.parse(data))
    return res.data;
}
export async function delete教师其他情况E(model){
  let res = await  request({
      url: `/JsqtqkE/${model.ID}`,
      method: 'delete',
    })
    return res.data;
}
export async function add教师其他情况E(model){
 
  let res =  await request({
    url: '/JsqtqkE',
    method: 'post',
    data: model,
  })
  return res.data;
}
export async function get教师其他情况F(XXID,CJPC){
  //
  
  let res =  await request({
      url: `/JsqtqkF?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and (是否删除 eq 0 or 是否删除 eq null)`,
      method: 'get',
    })
  return res.data.value;
  //
  
}

export async function get教师其他情况FByGH(XXID,CJPC,GH){
  //
  
  let res =  await request({
      url: `/JsqtqkF?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and GH eq '${GH}'`,
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function bulkAddJsqtqkF(data){
  //
  
  let res =  await request({
      url: '/JsqtqkF/BulkAddJsqtqkF',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况F(model){
  let res =  await request({
      url: `/JsqtqkF(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data;
}
export async function delete教师其他情况F(model){
  let res = await  request({
      url: `/JsqtqkF/${model.ID}`,
      method: 'delete',
    })
    return res.data;
}
export async function add教师其他情况F(model){
 
  let res =  await request({
    url: '/JsqtqkF',
    method: 'post',
    data: model,
  })
  return res.data;
}
export async function get教师其他情况G(XXID,CJPC){
  //
  
  let res =  await request({
      url: `/JsqtqkG?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and (是否删除 eq 0 or 是否删除 eq null)`,
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function bulkAddJsqtqkG(data){
  //
  
  let res =  await request({
      url: '/JsqtqkG/BulkAddJsqtqkG',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况G(model){
  let res =  await request({
      url: `/JsqtqkG(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data;
}
export async function delete教师其他情况G(model){
  let res = await  request({
      url: `/JsqtqkG/${model.ID}`,
      method: 'delete',
    })
    return res.data;
}
export async function add教师其他情况G(model){
 
  let res =  await request({
    url: '/JsqtqkG',
    method: 'post',
    data: model,
  })
  return res.data;
}
export async function get教师其他情况汇总(){
  //
  
  let res =  await request({
      url: '/Jsqtqkhz',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function update教师其他情况汇总(model){
  let res =  await request({
      url: `/Jsqtqkhz(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data;
}
export async function delete教师其他情况汇总(model){
  let res = await  request({
      url: `/Jsqtqkhz/${model.ID}`,
      method: 'delete',
    })
    return res.data;
}
export async function add教师其他情况汇总(model){
 
  let res =  await request({
    url: '/Jsqtqkhz',
    method: 'post',
    data: model,
  })
  return res.data;
}